package com.example.excel_db.dto;

import com.example.excel_db.entity.ExcelImportTask;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * Excel导入任务数据传输对象
 */
@Data
public class ExcelImportTaskDTO {
    
    private Long id;
    private Long templateId;
    private String templateName;
    private String fileName;
    private Integer totalRows;
    private Integer processedRows;
    private Integer successRows;
    private Integer failedRows;
    private ExcelImportTask.TaskStatus status;
    private String errorMessage;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private List<ExcelImportErrorDTO> errors = new ArrayList<>();
}